﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Threading.Tasks;

namespace ApiClientTest
{
    /// <summary>Test <see cref="UserClient"/>.</summary>
    [TestClass]
    public class UserClientTest : ClientTestBase
    {
        /// <summary>Simply get user.</summary>
        /// <returns></returns>
        [TestMethod]
        public async Task GetMe()
        {
            var client = CreateClient();
            var userMeta = await client.User.GetMeAsync();

            Assert.IsTrue(userMeta.Date < DateTime.Now);
        }
    }
}